function toChineseMumber(num) {
  const str = num.toString().replace(/(?=(\d{4})+$)/g, ',').split(",").filter(Boolean);
  console.log(str,"11")
}
console.log(toChineseMumber(12344321))